package funsets

object Main extends App {
  import FunSets._
  
  val s1 = singletonSet(1)
  val s2 = singletonSet(2)
  val s3 = singletonSet(3)
  val s17 = singletonSet(17)
  val s1s2 = union(s1, s2)
  val s2s3 = union(s2, s3)
  val s1s2s17 = union(s1s2, s17)
  
  println("{17} contains 17: ");
  // println(contains(singletonSet(1), 1))
  printSet(singletonSet(17))
  
  println("diff of {1,2} & {2,3} is {1}: ");
  val s_diff = diff(s1s2, s2s3)
  printSet(s_diff)
  
  println("filter of {1,2,17} with y => y < 15 is {1,2}")
  val s_filter = filter(s1s2s17, y => y < 15)
  printSet(s_filter)
}
